package com.cherry.ndkdemo;

/**
 * @author DongMS
 * @since 2020/4/24
 */
public final class FileSegmentMergeUtils {

    static {
        System.loadLibrary("native-lib");
    }

    private FileSegmentMergeUtils() {
    }

    /**
     * 拆分
     *
     * @param path         完整包路径
     * @param path_pattern 分包路径
     * @param count
     */
    public native static boolean diff(String path, String path_pattern, int count);


    /**
     * 合并
     *
     * @param path_pattern 分包路径
     * @param count
     * @param merge_path   完整包路径
     */
    public native static boolean patch(String merge_path, String path_pattern, int count);
}
